<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>中奖结果</title>
    <meta name="viewport" content="initial-scale=1, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">

    <meta http-equiv="X-Frame-Options" content="ALLOW-FROM">
    <meta http-equiv="pragma" content="no-cache">
  <script src="js/jquery.min.js"></script>
   <script src="./js/domain.js"></script>
    
    <style>
        body {
            overflow: hidden;
            overflow-y: scroll;
            margin: 0;
            padding: 0;
            background-color: #e6e6e6;
            -webkit-overflow-scrolling: touch;
            box-sizing: border-box;
        }
        #winningResult {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100%;
            background-color: #1189f7;
            background-image: url(imgs/bk.png);
            background-repeat: no-repeat;
            background-size: 100%;
            text-align: center;
        }
        .info{
            position: relative;
            width: 70%;
            height: 20%;
            margin-top: 42%;
            margin-left: 15%;
            color: #fffa09;
        }
        .info > div{
            height: 35px;
            line-height: 35px;
            vertical-align: middle;
        }
        .process{
            width: 100%;
            position: relative;
            margin-top: 15%;
        }
        #nativeShare {
            background: #fff;
        }
        .loading-indicator {
            height: 80px;
            width: 80px;
            background: url( './images/loading.gif' );
            background-repeat: no-repeat;
            background-position: center center;
        }

        .loading-indicator-overlay {
            background-color: #000;
            opacity: 0.6;
            filter: alpha(opacity = 60);
        }
    </style>
</head>
<body>
<div id="winningResult">
    <div class="info">
        <div class="name"></div>
        <div class="prize">获得<span>--</span></div>
        <div calss="come">快来参与抽奖</div>
    </div>
    <img class="process" src="imgs/process.png" />
    <!-- <img id="nativeShare1" src="imgs/WechatIMG5.png" style="width: 75%;"> -->
    <div class="loading" style="width: 100%;height: 100%;position: absolute;top: 0;display:none">
        <div id="loading-indicator-activity_pane-overlay"  class="loading-indicator-overlay" style="width: 100%; height: 100%; position: absolute; z-index: 5000;"></div>
        <div style="text-align: center; position: absolute; z-index: 5001; left: 144px; top: 300px;" id="loading-indicator-activity_pane" class="loading-indicator"></div>
    </div>
</div>
<!-- <script src="./nativeShare.js"></script>
<link rel="stylesheet" href="./nativeShare.css"/> -->
<script>
    var GetQueryString = function(name) {
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if(r!=null)return  unescape(r[2]); return null;
    }
    function hideLoading (){
        $('.loading').hide();
    }
    function showLoading (){
        $('.loading').show();
    }
    var userId = GetQueryString('userId');
    $.get(prizeMyUrl + "?userId="+userId,function(result){
        var data = eval('('+result+')');
        if(data.result == true && data.list){
            var length = data.list.length;
            var column = 0;
            for(var i=0;i<length;i++){
                column = column + (data.list[i].column || 0);
            }
            $('.name').html(data.userName);
            $('.prize span').html(column+'M邮箱容量')
        }
    })
    // if(userId){
    //        var config = {
    //         // url: Domain +,
    //         url: 'http://www.baidu.com',
    //         title:'中奖啦',
    //         desc:'中奖啦',
    //         img: 'http://www.wangjunfeng.com/img/face.jpg',
    //         img_title:'中奖啦',
    //         from:'中奖啦'
    //     };
    //     var share_obj = new nativeShare('nativeShare1',config);
    // }
  
    
</script>
</body>
</html>